<?php 	$cart =$this->cart;
if(!empty($cart)){
?>
			<div class="well">	
				<span class="text-error">Your basket summery</span>
						<table class="table table-striped">
							<thead>
								<tr>
									
									<th>Image</th>
									<th>Product Name</th>
									<th>Quantity</th>
									<th>Total</th>
								</tr>
							</thead>
							<tbody>
								<?php 
								// Initialize the total:
								
								foreach($cart['items'] as $product) 
								{								
								echo '<tr>
										<td><a href="product.php?id='.$product['pid'].'"><img width="30px" height="30px" alt="" src="static/products/'.$product['image'].'"></a></td>
										<td>'.$product['name'].'</td>
										<td> '.$product['quantity'].'</td>										
										<td>INR '.$product['subtotal'].'</td>
									</tr>';					
								
							
								}
								?>				  
								
							</tbody>
						</table>
						<hr>
						<p class="cart-total text-right">
							<strong>Sub-Total</strong>:	INR <?php echo $cart['subtotal']?><br>
							<strong>Shipping</strong>: INR <?php echo $cart['shipping']?><br>
							<strong>Total</strong>: INR<?php echo $cart['total']?><br>
						</p>
						<hr/>
						
						<p><a href="cart.php" class="btn btn-success"><i class="icon-shopping-cart icon-white"></i>Back To Cart</a></p>
			</div>
<?php 
	}
	else
	{
	?>
		
				    <section class="header_text text-center">
						<h2><span class="text-error">Your Shopping Cart</span></h2>
					</section>	
				    <div class="alert alert-error">
            				<p class="text-center">Your shopping cart is currently empty.</p>
				    </div>
		
	<?php
	}
	?>	
